﻿using ConfExpert.Forms.Base;
using ConfExpert.Utility;
using DevExpress.XtraEditors.Controls;
using DevExpress.XtraEditors.Repository;
using DevExpress.XtraGrid.Columns;
using DevExpress.XtraGrid.Views.Grid;
using DevTeam;
using System;
using System.Data;
using DevTeam;

namespace ConfExpert.Forms.Depo
{
    public partial class PhotosCheck : XForm
    {
        public PhotosCheck()
        {
            InitializeComponent();
        }

        private void PhotosCheck_Load(object sender, EventArgs e)
        {
            gridView1.Init("GetIdenticalImages");
            gridView1.AddDetailGrid(gridView2, "U1,U2,U5");
            gridView1.AddColumn("LineCount", typeof(int), "COUNT(Child({FK}).ProductId)");
            gridView2.FormatAsNumber(1, "Qty");
            gridView2.AddSummary("Qty");
            gridView1.AddSummary();
            gridView1.BestFitColumns();
            gridView2.BestFitColumns();
        }


    }
}
